﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchEvaluationInfo.aspx.cs" Inherits="RegisterWeb.Manager.DoctorPersonalCenter.SearchEvaluationInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-easyui-1.2.6/themes/gray/easyui.css" rel="stylesheet"
        type="text/css" />
    <link href="../../js/jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    
    <script src="../../js/jquery-easyui-1.2.6/datagrid-detailview.js" type="text/javascript"></script>
     <style type="text/css">
        
	.dv-table td{
		border:0;
	}
	.dv-label{
		font-weight:bold;
		color:#15428B;
		width:150px;
	}
</style>
<script type="text/javascript">
    $(function () {
        $('#dg').datagrid({
            view: detailview,
            detailFormatter: function (index, row) {
                return '<div id="ddv-' + index + '" style="padding:5px 0"></div>';
            },
            onExpandRow: function (index, row) {
                $('#ddv-' + index).panel({
                    border: false,
                    cache: false,

                   // href: 'ashx/DoctorPersonInfoHandler.ashx?action=getMore&EvaluationInfo_ID=' + row.EvaluationInfo_ID,
                    href:'ShowEvaluationInfo.aspx',
                    onLoad: function () {
                        $('#dg').datagrid('fixDetailRowHeight', index);
                          $("#EvaluationInfo_EvalContent").text(row.EvaluationInfo_EvalContent);
                    }
                });
                $('#dg').datagrid('fixDetailRowHeight', index);
            }
        });
    
    });
 
</script>

</head>
<body>
    <form id="form1" >
    <div region="center" title="查看患者评价" >
<table id="dg" title="查看患者评价" class="easyui-datagrid" style="overflow:auto ; height:550px"
			url="ashx/DoctorPersonInfoHandler.ashx?action=getEvaluation"
			toolbar="#toolbar"  pagination="true"
			rownumbers="true" fitColumns="true" singleSelect="true" 
            pageSize="20"
            >
		<thead>
			<tr>
			    <th field="Doctor_ID" width="50">医生姓名</th>
				<th field="PatientUserInfo_ID" width="50">患者姓名</th>
                <th field="EvaluationInfo_EvalWay" width="50">评价路径</th>
                <th field="EvaluationInfo_EvalContent" width="50">评价内容</th>
                <th field="EvaluationInfo_AddTime" width="50"> 评价时间</th>
                <th idField="EvaluationInfo_ID" width="50" hidden="true">评价ID</th>
                <th field="EvaluationInfo_Status" width="50" hidden="true">评价状态</th>
		</thead>
	</table>

    <div id="toolbar" style="padding:5px;height:auto;color:#0000ee">
                 
                   <!-- <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="">查看评价详情</a>-->
                   说明:展开"+"以查看更多评价内容!

    </div>

            <div id="editDoctorUser" class="easyui-dialog" closed="true" buttons="#editDoctorUser-buttons" style="padding:10px 20px">
        	</div>
            <div id="editDoctorPersonUser" class="easyui-dialog" closed="true" buttons="#editDoctorPersonUser-buttons" style="padding:10px 20px" ></div>
            <div id="editDoctorUser-buttons">
			<!--	<a href="#" class="easyui-linkbutton" iconCls="icon-ok"  onclick="saveInfo()">保存</a>-->
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick='$("#editDoctorUser").dialog("close");'>关闭</a>
			</div>

             <div id="editDoctorPersonUser-buttons">
				<a href="#" class="easyui-linkbutton" iconCls="icon-ok"  onclick="saveInfo()">保存</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick='$("#editDoctorPersonUser").dialog("close");'>关闭</a>
			</div>

    </div>
    </form>
</body>
</html>

